package com.gurun.camera.device.util;

import com.danale.sdk.device.constant.DeviceType;
import com.danale.sdk.platform.constant.device.ProductType;

public class ClassCodeUtil {

    public static String[] convertClassCode(DeviceType deviceType){
        if(deviceType == DeviceType.DVR || deviceType == DeviceType.DVR_NO_MIX_MULTI_CHANNEL
                || deviceType == DeviceType.DVR_NO_MIX_NO_MULTI_CHANNEL || deviceType == DeviceType.DVR_SPLIT){
            return new String[]{ProductType.DVR.getType()};
        }else if(deviceType == DeviceType.NVR || deviceType == DeviceType.NVR_NO_MIX_MULTI_CHANNEL
                || deviceType == DeviceType.NVR_NO_MIX_NO_MULTI_CHANNEL || deviceType == DeviceType.NVR_SPLIT){
            return new String[]{ProductType.NVR.getType()};
        }else if(deviceType == DeviceType.IPC){
            return new String[]{ProductType.IPC.getType()};
        }else if(deviceType == DeviceType.GARAGE_DOOR_OPENER_WITH_CAMERA){
            return new String[]{ProductType.VISUAL_GARAGE_DOOR.getType()};
        }else if(deviceType == DeviceType.RING){
            return new String[]{ProductType.DOORBELL.getType()};
        }

        return new String[]{ProductType.IPC.getType()};
    }


}
